var images_url = 'images';
var ie4=document.all;
var ns6=document.getElementById;

function submitOnEnter(myform) {
	if (window.event && window.event.keyCode == 13) {
		myform.submit();
	} else {
		return true;
	}
}

function ShowImage(Image) {
	var ContentObj=document.getElementById? document.getElementById("GiftShow2"): document.all.GiftShow2;

  	File = Image.split(';')[0];
  	if (File != '') {
    	if (ie4 || ns6) {
      		ContentObj.innerHTML='<center>Loading image...</center>';
      		ContentObj.innerHTML='<center><img src="'+images_url+'/'+File+'"></center>';
    	}
    	else if (document.layers) {
      		document.GiftShow.document.GiftShow1.document.write('<center><img src="'+images_url+'/'+File+'"></center>');
      		document.GiftShow.document.GiftShow1.document.close();
    	}
    	else {
      		alert('You need NS 4+ or IE 4+ to view the images!');
    	}
  	}
  	else { // Clear image
    	if (ie4 || ns6) {
      		ContentObj.innerHTML=' ';
    	}
    	else if (document.layers) {
      		document.GiftShow.document.GiftShow1.document.write(' ');
      		document.GiftShow.document.GiftShow1.document.close();
    	}
    	else {
      		alert('You need NS 4+ or IE 4+ to view the images!');
    	}
  	}
}